<%@ page language="java" pageEncoding="UTF-8"
	buffer="none"%>
<%@ page import="java.io.PrintWriter" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<%
PrintWriter outServlet01=response.getWriter();
outServlet01.write("1");

%>
<%  //先执行不输出，等所有代码执行完或者暂存溢出，才执行输出
	//设置暂存为0,buffer="none"，输出顺序为123 
out.write("2");
%>
<%
PrintWriter outServlet02=response.getWriter();
outServlet02.write("3");
%>
</body>
</html>